<link href="../Public/css/skin.css" rel="stylesheet" type="text/css" />
<link href="../Public/css/Dialogbox.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../Public/js/jquery-1.4.3.min.js"></script>
<script language="javascript" src="../Public/js/Dialogbox.js"></script>
<script language="javascript" src="../Public/WdatePicker/WdatePicker.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 <title>修改用户信息</title>

<style type="text/css">
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		background-color: #EEF2FB;
	}
	
	textarea {
		display: block;
	}
</style>

<script type="text/javascript">

var IMGPATH="../Public/images/";

$(document).ready(function(){

	$("#pic").hide();
	$("#recommend").click(function(){
		if($(this).attr("checked")){
			$("#pic").show();
		}else{
			$("#pic").hide();
		}
	});
	
});

function usericon(){
	addDialogbox("#usericon","选择自己的个性图像",10001,502);
	loadUserIcon();
}

function loadUserIcon(){
	$.ajax({
		url: "__URL__/selectHead",
		cache: false,
		success: function(msg){
			$("#usericon .dialogboxContent").html(msg);
			$("#newIconList button").click(function(){
				loadUserIcon();
			});
		}
	});
}

function selsectlogo(path,val){
	$('#showicon').attr('src',path);
	$('#head').attr('value',val);
	removeDialogbox("#usericon");
}

</script>


<body>

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top"
				background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/left-top-right.gif" width="17" height="29" />
			</td>
			<td valign="top" background="../Public/images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">编辑用户</div> </td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		<tr>
			<td valign="middle" background="../Public/images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td valign="top" class="td_top"></td>
					</tr>
					<tr>
						<td>
						
						
							<form method="post" id="list" action="__URL__/update">
								<table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#CCCCCC" class="content">
									<tr>
										<td class="edit_left">邮箱：</td>
										<td class="edit_right">
										    <!-- 主键ID为隐藏域 -->
											<input type="hidden" name="id" id="id" value="{$data.id}" class="edit_input" readonly="readonly"> 
											<input type="text" name="mail" id="mail" value="{$data.mail}" class="edit_input" readonly="readonly">
										</td>
									</tr>
									<tr>
										<td class="edit_left">昵称：</td>
										<td class="edit_right">
											<input type="text" name="name" id="name" value="{$data.name}" class="edit_input" >
										</td>
									</tr>
									<tr>
										<td class="edit_left">真实姓名：</td>
										<td class="edit_right">
											<input type="text" name="realname" id="realname" value="{$data.realname}" class="edit_input" >
										</td>
									</tr>
									<tr>
										<td class="edit_left">密码：</td>
										<td class="edit_right">
											<input type="password" name="password" id="password" value="" class="edit_input">
										</td>
									</tr>
									<tr>
										<td class="edit_left">IP：</td>
										<td class="edit_right">
											<input type="text" name="ip" id="ip" value="{$data.ip}" class="edit_input">
										</td>
									</tr>
									
									
									<tr>
										<td class="edit_left">头像：</td>
										<td class="edit_right">
											<input type="hidden" name="head" id="head" value="{$data.head}" class="edit_input">
											<div>
												<a href="javascript:usericon();"><img id="showicon"
													src='__PUBLIC__/images/head/b/{$data.head}' />
												</a>
											</div>
										</td>
									</tr>
									
									<tr>
										<td class="edit_left">性别：</td>   <!--先生0 女士1 -->
										<td class="edit_right">
										  <if condition="$data.state eq 1">
											<input type="radio" name="sex" value="0">先生 
											<input type="radio" name="sex" value="1" checked="checked">女士
										  <elseif condition="$data.status eq 0" /> 
										    <input type="radio" name="sex" value="0" checked="checked">先生
										    <input type="radio" name="sex" value="1">女士
										   <else /> 
										    <input type="radio" name="sex" value="0">先生 
										    <input type="radio" name="sex" value="1">女士
										  </if>
										</td>
									</tr>
									<tr>
										<td class="edit_left">出生年月：</td>
										<td class="edit_right">
										  <input type="text" name="birthday" id="birthday" value="{$data.birthday|date='Y-m-d H:i:s',###}"	class="edit_input" onclick="WdatePicker()">
										</td>
									</tr>
									<tr>
										<td class="edit_left">电话：</td>
										<td class="edit_right">
											<input type="text" name="tel" id="tel" value="{$data.tel}" class="edit_input">
										</td>
									</tr>
									<tr>
										<td class="edit_left">移动电话：</td>
										<td class="edit_right">
											<input type="text" name="phone" id="phone" value="{$data.phone}" class="edit_input">
										</td>
									</tr>
									
									<!-- 实体币数 -->
									<tr>
										<td class="edit_left">
											{$Think.config.sysconfig.beat_name}：
										</td>
										<td class="edit_right">
											<input type="text" name="beat" id="beat" value="{$data.beat}" class="edit_input" style="color: red;">
										</td>
									</tr>
										<!-- 虚拟币数 -->
									<tr>
										<td class="edit_left">
											{$Think.config.sysconfig.pointb_name}：
										</td>
										<td class="edit_right">
											<input type="text" name="pointb" id="pointb" value="{$data.pointb}" class="edit_input" style="color: red;">
										</td>
									</tr>
									
									<tr>
										<td class="edit_left">机器人：</td>
										<td class="edit_right">
											<eq name="data['robot']" value="0">
												<input type="checkbox" name="robot" value="1">机器人 </eq> 
											<eq name="data['robot']" value="1"> 
												<input type="checkbox" name="robot" value="1" checked="checked">机器人 </eq>
										</td>
									</tr>
									
									
									
									<input type="hidden"  name="state" value={$data.state}">
									
									<tr>
										<td class="edit_left">锁定状态：</td>
										<td class="edit_right">
											<if condition="$data.lockstate eq 0"> 
												<input type="radio" name="lockstate" value="0" checked="checked">启用
												<input type="radio" name="lockstate" value="1">禁用
											 <elseif condition="$data.lockstate eq 1" />  <!-- 禁用状态 -->
											   <input type="radio" name="lockstate" value="0">启用
											   <input type="radio" name="lockstate" value="1" checked="checked">禁用
											  <else />
												<input type="radio" name="lockstate" value="0">启用 
												<input type="radio" name="lockstate" value="1">禁用
											 </if>
									  </td>
									</tr>
									
									<tr>
										<td colspan="2">
											<a href="javascript:list.submit();" id="submit" class="operation_submit" style="margin-left: 430px; margin-top: 30px;"></a>
										</td>
									</tr>
								</table>
							</form>
							
							
						</td>
					</tr>
					<tr>
						<td height="40"></td>
					</tr>
					<tr>
						<td width="51%" class="left_txt"><img
							src="../Public/images/icon-mail2.gif" width="16" height="11">
							客户服务邮箱：{$Think.config.sysconfig.services_email}<br> <img
							src="../Public/images/icon-phone.gif" width="17" height="14">
							官方网站：{$Think.config.sysconfig.website}</td>
					</tr>
				</table>
			</td>
			<td background="../Public/images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="bottom" background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td background="../Public/images/buttom_bgs.gif"><img
				src="../Public/images/buttom_bgs.gif" width="17" height="17">
			</td>
			<td valign="bottom" background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/buttom_right2.gif" width="16" height="17" />
			</td>
		</tr>
	</table>

</body>
